//
//  Teacher.m
//  OC01_work
//
//  Created by 侯平章 on 16/2/21.
//  Copyright © 2016年 侯平章. All rights reserved.
//

#import "Teacher.h"

@implementation Teacher
- (void)sayHi{
    NSLog(@"我是%@,name:%@",_sex,_name);
}
- (void)setName:(NSString*)name sex:(NSString*)sex age:(NSInteger)age weight:(float)weight height:(float)height{
    _name = name;
    _sex = sex;
    _age = age;
    _weight = weight;
    _height = height;
}
#pragma mark -setter方法
- (void)setName:(NSString*)name{
    _name = name;
}
#pragma mark -getter方法
- (NSString*)name{
    return _name;
}
@end
